//
//  UIView+StoryBoard.swift
//  chat
//
//  Created by 崔世强 on 2018/11/5.
//  Copyright © 2018 崔世强. All rights reserved.
//

import Foundation
import UIKit

extension UIView {
    @IBInspectable var cornerRadius: CGFloat {
        get {
            return layer.cornerRadius
        }
        set {
            layer.cornerRadius = newValue
            layer.masksToBounds = newValue != 0
        }
    }
}
